<?php
$this->pageTitle = Yii::app()->name . ' - Tìm lại mật khẩu';
$this->breadcrumbs = array(
    'Tìm lại mật khẩu',
);
?>
<?php if (Yii::app()->user->hasFlash('reset_pw')): ?>

<div class="flash-success">
    <?php echo Yii::app()->user->getFlash('reset_pw'); ?>
</div>

<?php else: ?>
<div class="form" id="login">
    <?php
    /* @var $this SiteController
     * @var $form CActiveForm
     * @var $model ResetpwForm
     */

    $form = $this->beginWidget('CActiveForm', array(
        'id' => 'resetpw-form',
        'htmlOptions' => array('class' => 'box-shadow'),
        'enableClientValidation' => true,
        'clientOptions' => array(
            'validateOnSubmit' => true,
        ),
    )); ?>
    <div class="row">
        Vui lòng nhập email.
    </div>
    <div class="row">
        <?php echo $form->labelEx($model, 'email'); ?>
        <?php echo $form->textField($model, 'email'); ?>
        <?php echo $form->error($model, 'email'); ?>
    </div>
    <div class="row buttons">
        <?php echo CHtml::submitButton('Submit'); ?>
    </div>
    <?php $this->endWidget(); ?>
</div>
<?php endif; ?>